//Unittest4 kingdom cards
#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <assert.h>

int main(int argc, char const *argv[])
{
	int i;
	int k1, k2, k3, k4, k5, k6, k7, k8, k9, k10;

	for(i = 0; i < 2000; i++){
	k1 = rand() % 27;
	k2 = rand() % 27;
	k3 = rand() % 27;
	k4 = rand() % 27;
	k5 = rand() % 27;
	k6 = rand() % 27;
	k7 = rand() % 27;
	k8 = rand() % 27;
	k9 = rand() % 27;
	k10 = rand() % 27;

	int *k = kingdomCards(k1, k2, k3, k4, k5, k6, k7, k8, k9, k10);
	assert(k != NULL);
	if(k1 != k[0] || k2 != k[1] || k3 != k[2] || k4 != k[3] || k5 != k[4] || k6 != k[5] || k7 != k[6] || k8 != k[7] || k9 != k[8] || k10 != k[9]){
		printf("Fail\n");
	}else{
		printf("Pass\n");
	}

	}
	return 0;
}